﻿using System;
using System.Collections.Generic;
using System.Text;
using NExt.core;

namespace NExt.grid
{
    public class PropertyGrid : PropertyGrid<PropertyGridEvents>
    {
        public PropertyGrid()
        {
            xtype = XType.EXT_GRID_PROPERTYGRID;
        }
    }

    public abstract class PropertyGrid<TEvents> : EditorGridPanel<TEvents>
        where TEvents : PropertyGridEvents, new()
    {
        public object customEditors { get; set; }
        public object source { get; set; }
    }

    public class PropertyGridEvents: EditorGridPanelEvents
    {
        public IScript beforepropertychange { get; set; }
        public IScript propertychange { get; set; }
    }
}
